import { createRouter, createWebHashHistory , Router} from 'vue-router'

import { routes as SystemRoutes } from './SystemRouter';

import DefaultLayout from '@/layout/DefaultLayout.vue'
import Dashboard from '@/views/main/Dashboard.vue'
export const routes = [
  {
    path: '/',
    name:'/',
    component: DefaultLayout,
    redirect: '/dashboard',
    children: [
      {
        name:'/dashboard',
        path: 'dashboard',
        component: Dashboard,
      }
    ],
    meta:{
      app:"CONSOLE"
    }
  },
]

export const router: Router = createRouter({
  history: createWebHashHistory(),
  routes: [
    ...routes,
    ...SystemRoutes
  ]
})